import LoadingComponent from './loading.vue'

const Loading = {
    install: function (Vue) {
        Vue.component(LoadingComponent.name, LoadingComponent)
        Vue.directive(LoadingComponent.name, LoadingComponent)
        Vue.mixin({
            created () {
                // console.log('loading.js created')
            }
        })
        Vue.loading = function () {
            // console.log('Vue fn');
        }
        Vue.prototype.$loading = function () {
            console.log('$alert');
        }
    }
}
export default Loading